Skip to content

Enable STRICT_JS by default#26421

Open
sbc100 wants to merge 1 commit intoemscripten-core:mainfrom
sbc100:strict_js_by_default
Open

Enable STRICT_JS by default#26421
sbc100 wants to merge 1 commit intoemscripten-core:mainfrom
sbc100:strict_js_by_default

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Mar 9, 2026

This has been enabled under STRICT mode since it was first added back in 2019 (#9265).

One of the benefits of enabling this by default is that we can delete the strict test mode and the no_strict_js decorator.

@sbc100 sbc100 requested a review from kripken March 9, 2026 22:15
@sbc100 sbc100 force-pushed the strict_js_by_default branch from 8f29776 to 7053815 Compare March 9, 2026 22:16
@sbc100 sbc100 force-pushed the strict_js_by_default branch 2 times, most recently from ffdf951 to 3431363 Compare March 9, 2026 23:53
sbc100 added a commit that referenced this pull request Mar 10, 2026
@sbc100 sbc100 force-pushed the strict_js_by_default branch 2 times, most recently from dfd3627 to af8de59 Compare March 10, 2026 17:48
This has been enabled under `STRICT` mode since it was first added back
in 2019 (emscripten-core#9265).
@sbc100 sbc100 force-pushed the strict_js_by_default branch from af8de59 to 2f86cdf Compare March 10, 2026 17:52
@sbc100
Copy link
Collaborator Author

sbc100 commented Mar 10, 2026

This change is now re-based onto main after #26422 landed.

I'm not totally sure I want to land it ..

sbc100 added a commit to sbc100/emscripten that referenced this pull request Mar 10, 2026
Its still not allowed in `EXPORT_ES6` mode where its the default.

Split out from emscripten-core#26421
@kripken
Copy link
Member

kripken commented Mar 10, 2026

I'm not totally sure I want to land it ..

What are the concerns?

@sbc100
Copy link
Collaborator Author

sbc100 commented Mar 10, 2026

I'm not totally sure I want to land it ..

What are the concerns?

I thinks its probably fine but I might let a bake a little longer. I like this it removes a whole test config. It just seems odd to be adding use strict in 2026 when almost everyone is probably on a version of JS that is way ahead of ES6 even.

@sbc100
Copy link
Collaborator Author

sbc100 commented Mar 10, 2026

I'd still like to land #26424 ASAP though.

sbc100 added a commit that referenced this pull request Mar 11, 2026
Its still not allowed in `EXPORT_ES6` mode where its the default.

Split out from #26421
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants